package com.yfp.tissue.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.tissue.domain.SysDeptCity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【sys_dept_city(部门城市关联)】的数据库操作Mapper
 * @createDate 2024-11-15 11:29:29
 * @Entity domain.com.yfp.tissue.SysDeptCity
 */
public interface SysDeptCityMapper extends BaseMapper<SysDeptCity> {

    /**
     * 根据部门id查询城市
     *
     * @param deptId
     * @return
     */
    List<SysDeptCity> getByDeptId(Long deptId);

    SysDeptCity getByDeptIdAndCityName(@Param("deptId") Long deptId, @Param("cityName") String cityName);
}




